import request from "@/utils/request";

export const getNzwList = (data) => {
    return request({
        url: "/intra/pattern/patterncrops/list",
        method: "get",
        params: data,
    });
};
export const delNzw = (data) => {
    return request({
        url: "/intra/pattern/patterncrops/delete",
        method: "delete",
        data,
    });
};
export const getNzwDetailById = (id) => {
    return request({
        url: `/intra/pattern/patterncrops/detail/${id}`,
        method: "get",
    });
};
export const saveNzw = (data) => {
    return request({
        url: `/intra/pattern/patterncrops/submit`,
        method: "post",
        data,
    });
};